FROM openjdk:17
MAINTAINER bamanker
ARG JAR_FILE
ARG PROJECT_NAME
ARG APP_PORT
ADD target/${JAR_FILE} /home/cloud-sms-rec/${PROJECT_NAME}/${PROJECT_NAME}.jar
ADD start.sh /home/cloud-sms-rec/${PROJECT_NAME}/
RUN chmod +x /home/cloud-sms-rec/${PROJECT_NAME}/start.sh
EXPOSE ${APP_PORT}
CMD ["sh","/home/cloud-sms-rec/cloud-gateway/start.sh"]